
import editor from '../views/editor/editor.vue'
import home from '../views/home/home.vue'
import UEditor from '../views/u-editor/index.vue'
import  {createRouter,createWebHashHistory} from 'vue-router'
const routes = [
  { path: '/', component: home },
    { path: '/editor', component: UEditor },
    {path: '/ceditor', component: UEditor}
  ]



const Router = createRouter({
    // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
    history: createWebHashHistory(),
    routes, // `routes: routes` 的缩写
  })
  


export default Router